package kr.co.onc.controller;
import javax.servlet.http.HttpServletRequest;

import kr.co.onc.common.BaseController;
import kr.co.onc.service.CustomerService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
@Controller
public class CustomerController  extends BaseController{
	@Autowired
	private CustomerService  customerService;
	
	
	
	
	@RequestMapping ( value = {"Customer/List", "Customer/List-aJax"} )
		public String customerList(
				HttpServletRequest request,
				Model model,
				 @RequestParam ( value = "isAjax", defaultValue = "false" ) boolean isAjax){
			
		
		
		
		
		
		
		
		if ( isAjax ) {
			return "customer/customerList-ajax";
		} else {
			return "customer/customerList";
		}
		
		}
	
		
}
